<div class="ng-modal-window">
  <div class="ng-modal-inner">
    <div class="modal-header">
      <a>
        <i
            class="icon-close"
            ng-click="$ctrl.closeMe()"
            title="{{ ::I18n.t('js.close_popup_title') }}">
        </i>
      </a>
    </div>

    <h3>{{ ::I18n.t('js.label_save_as') }}</h3>

    <form name="modalSaveForm" class="form">
      <div class="form--field -required">
        <label class="form--label">
          {{ ::I18n.t('js.modals.label_name') }}
        </label>
        <div class="form--field-container">
          <div class="form--text-field-container">
            <input
                class="form--text-field"
                type="text"
                name="save_query_name"
                id="save-query-name"
                ng-model="queryName" focus required />
          </div>
        </div>
      </div>
      <div class="form--space">
        <button class="button -highlight -with-icon icon-checkmark"
                ng-click="saveQueryAs(queryName)"
                ng-disabled="modalSaveForm.$invalid">
          {{ ::I18n.t('js.modals.button_save') }}
        </button>
        <button class="button" ng-click="$ctrl.closeMe()">
          {{ ::I18n.t('js.modals.button_cancel') }}
        </button>
      </div>
    </form>

  </div>
</div>
